package com.qidian.mes.cal.controller;

import com.qidian.mes.cal.service.CalTeamTypeService;
import com.qidian.mes.util.pojo.MESResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@CrossOrigin
@RequestMapping("/teamType")
public class CalTeamTypeController {
    @Autowired
    CalTeamTypeService calTeamTypeService;

    @GetMapping("/list")
    public MESResult list() {//查询所有班组类型
        return MESResult.ok(calTeamTypeService.list());
    }
}
